.header {
  position: relative;
  display: flex;
  color: var(--g-header-color);
  background-color: var(--g-header-bg);
  box-shadow: var(--g-header-shadow);
  grid-area: 1 / 1 / 2 / 3;
  align-items: center;

  &-right {
    display: flex;
    padding-right: 24px;
    margin-left: auto;
    align-items: center;
    column-gap: 4px;
  }
}

.logo {
  display: flex;
  width: var(--g-sider-width);
  height: 100%;
  padding: 0 20px;
  align-items: center;
  column-gap: 10px;

  &-inner {
    position: relative;
    height: 36px;
    flex-shrink: 0;

    img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }

  &-title {
    flex-grow: 1;
    min-width: 0;
    font-size: 16px;
    color: #fff;
    text-decoration: none;

    @include truncate;
  }
}

.menu {
  flex: 1;
  min-width: 0;

  :global {
    .ant-menu-dark.ant-menu-horizontal > .ant-menu-item-selected::after {
      right: 0;
      left: 0;
      height: 4px;
      background: linear-gradient(90deg, #f6ac2d 0%, #f66c00 100%);
    }
  }
}

.menu-inner {
  --ant-menu-horizontal-line-height: var(--g-header-height);
  --ant-menu-item-bg: transparent;
  --ant-menu-item-color: #fff;
  --ant-menu-item-hover-color: #fff;
  --ant-menu-item-padding-inline: 48px;
  --ant-font-size: 16px;
  --ant-menu-dark-item-selected-bg: rgb(0 91 172 / 60%);
  --ant-menu-dark-item-selected-color: #fff;
}

.dropdown-menu {
  z-index: 2000;
  width: 160px;
}

.header-tag {
  margin-right: 8px;
  font-size: 12px;
  line-height: 1.1;
  color: #f6ac2d;
  white-space: nowrap;

  // padding: 8px 10px;
  // border-radius: 2px;
  // color: #fff;
}

.header-action {
  display: flex;
  width: 32px;
  height: 32px;
  font-size: 16px;
  color: rgba(#fff, 0.85);
  cursor: pointer;
  border-radius: 16px;
  align-items: center;
  justify-content: center;

  &:hover {
    color: #fff;
    background-color: rgb(255 255 255 / 20%);
  }
}

.avatar {
  margin-left: 8px;
  background-color: rgb(255 255 255 / 20%);
}
